package com.elai.overview.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.elai.overview.mapper.MyOverviewPageMarkRelaMapper;
import com.elai.overview.domain.MyOverviewPageMarkRela;
import com.elai.overview.service.IMyOverviewPageMarkRelaService;

/**
 * 书签与概览页面关联Service业务层处理
 * 
 * @author elai
 * @date 2021-09-19
 */
@Service
public class MyOverviewPageMarkRelaServiceImpl implements IMyOverviewPageMarkRelaService 
{
    @Autowired
    private MyOverviewPageMarkRelaMapper myOverviewPageMarkRelaMapper;

    /**
     * 查询书签与概览页面关联
     * 
     * @param markId 书签与概览页面关联ID
     * @return 书签与概览页面关联
     */
    @Override
    public MyOverviewPageMarkRela selectMyOverviewPageMarkRelaById(Long markId)
    {
        return myOverviewPageMarkRelaMapper.selectMyOverviewPageMarkRelaById(markId);
    }

    /**
     * 查询书签与概览页面关联列表
     * 
     * @param myOverviewPageMarkRela 书签与概览页面关联
     * @return 书签与概览页面关联
     */
    @Override
    public List<MyOverviewPageMarkRela> selectMyOverviewPageMarkRelaList(MyOverviewPageMarkRela myOverviewPageMarkRela)
    {
        return myOverviewPageMarkRelaMapper.selectMyOverviewPageMarkRelaList(myOverviewPageMarkRela);
    }

    /**
     * 新增书签与概览页面关联
     * 
     * @param myOverviewPageMarkRela 书签与概览页面关联
     * @return 结果
     */
    @Override
    public int insertMyOverviewPageMarkRela(MyOverviewPageMarkRela myOverviewPageMarkRela)
    {
        return myOverviewPageMarkRelaMapper.insertMyOverviewPageMarkRela(myOverviewPageMarkRela);
    }

    /**
     * 修改书签与概览页面关联
     * 
     * @param myOverviewPageMarkRela 书签与概览页面关联
     * @return 结果
     */
    @Override
    public int updateMyOverviewPageMarkRela(MyOverviewPageMarkRela myOverviewPageMarkRela)
    {
        return myOverviewPageMarkRelaMapper.updateMyOverviewPageMarkRela(myOverviewPageMarkRela);
    }

    /**
     * 批量删除书签与概览页面关联
     * 
     * @param markIds 需要删除的书签与概览页面关联ID
     * @return 结果
     */
    @Override
    public int deleteMyOverviewPageMarkRelaByIds(Long[] markIds)
    {
        return myOverviewPageMarkRelaMapper.deleteMyOverviewPageMarkRelaByIds(markIds);
    }

    /**
     * 删除书签与概览页面关联信息
     * 
     * @param markId 书签与概览页面关联ID
     * @return 结果
     */
    @Override
    public int deleteMyOverviewPageMarkRelaById(Long markId)
    {
        return myOverviewPageMarkRelaMapper.deleteMyOverviewPageMarkRelaById(markId);
    }
}
